package com.smxy.daydayup.mapper;

import com.smxy.daydayup.pojo.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @team daydayup
 * @time 2021-12-07 15:23
 */
@Mapper
public interface MajorMapper {
    int deleteByPrimaryKey(Long majorId);

    int insert(Major record);

    int insertSelective(Major record);

    Major selectByPrimaryKey(Long majorId);

    int updateByPrimaryKeySelective(Major record);

    int updateByPrimaryKey(Major record);

    //通过专业编号查询专业名称,学校id和学院编号限定查询范围
    String selectNameByNumber(@Param("majorNumber") String majorNumber,
                              @Param("collegeNumber") String collegeNumber,
                              @Param("schoolId") Long schoolId);
}